<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>6.盒子模型-边框</title>
  <style>
    div{
        width: 100px;
        height: 100px;
    }
    /* 设置class=d1的div块的上边框 粗细 样式和颜色*/
    .d1 {
      border-top-width: 2px;
      border-top-style: solid; /* 实线 */
      border-top-color: red;
    }

    /* 设置class=d2的div块的右边框 */
    .d2 {
      border-right-width: 5px;
      border-right-style: dashed; /* 虚线 */
      border-right-color: blue;
    }

    /* 设置class=d3的div块的下边框 */
    .d3 {
      border-bottom-width: 10px;
      border-bottom-style: dotted; /* 点状线 */
      border-bottom-color: green;
    }

    /* 设置class=d4的div块的左边框 */
    .d4 {
      border-left-width: 7px;
      border-left-style: double; /* 双线 */
      border-left-color: orange;
    }

    /* 上右下左 */
    .d5 {
      border-width: 1px 3px 5px 7px;
      border-color: lightblue lightcoral cadetblue royalblue;
      border-style: solid dotted dashed double;
    }

    /* 上下 左右 */
    .d6 {
      border-width: 3px 7px;
      border-color: lightcoral royalblue;
      border-style: solid double;
      border-radius: 30% 50%;
    }
    /* 四边统一设置 粗细 样式和颜色
       border:设置边框
       border-radius：设置圆角边框 百分比*/
    .d7 {
      border: 3px solid orange;
      border-radius: 50%;
    }
  </style>
</head>

<body>
  <div class="d1"></div>
  <div class="d2"></div>
  <div class="d3"></div>
  <div class="d4"></div>
  <div class="d5"></div>
  <div class="d6"></div>
  <br/>
  <div class="d7"></div>
</body>

</html>